package com.why.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author new wei
 * @date 2022/5/20 13:13
 */
@RestController
public class MyController {

    @RequestMapping("list")
    public List<String> list(){
        ArrayList<String> list = new ArrayList<>();
        list.add("admin");
        list.add("tom");
        list.add("lsen");
        return list;
    }
}
